package top.xzxsrq.fileviewutils.service;

import com.alibaba.fastjson.JSONObject;
import top.xzxsrq.fileviewutils.entity.DownloadTaskSearch;
import top.xzxsrq.web.utils.AjaxResult;

public interface DownloadService {
    AjaxResult getDownloadListType();

    AjaxResult submitDownload(JSONObject jsonObject);

    AjaxResult getDownloadList(DownloadTaskSearch downloadTaskSearch, int pageNum, int pageSize);

    AjaxResult getDownloadDetails(String downloadId);

    AjaxResult delDownload(String downloadId);

    AjaxResult downloadAgain(String downloadId);

    AjaxResult threadInfo();

    AjaxResult deleTheard(String threadId);

    AjaxResult urlParsing(JSONObject jsonObject);
}
